From: Alessandro Bono Date: Mon, 29 Jun 2026 11:16:55 +0000 (+0200) Subject: shell/global: Plug a leak X-Git-Tag: archive/raspbian/50.5-1+rpi1^2~9^2^2~19 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=489816c39adf728d8a54201ce600948d05ed9f4d;p=gnome-shell.git shell/global: Plug a leak Use g_autoptr to ensure the variant is always freed. Part-of: (cherry picked from commit 2405521d039fa61f754c190b6f3fd5a0b7f8c2da) --- diff --git a/src/shell-global.c b/src/shell-global.c index dc4075e26..443376f77 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -148,7 +148,7 @@ got_switcheroo_control_gpus_property_cb (GObject *source_object, { ShellGlobal *global; GError *error = NULL; - GVariant *gpus; + g_autoptr (GVariant) gpus = NULL; gpus = g_dbus_connection_call_finish (G_DBUS_CONNECTION (source_object), res, &error);